<?php /* Smarty version Smarty-3.1.8, created on 2012-03-11 10:31:19
         compiled from ".\templates\rubriques.tpl.php" */ ?>
<?php /*%%SmartyHeaderCode:48514f5a7c6f419e76-27683491%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f836d1d14015f9b9e285848d919ff1ed1a6d6961' => 
    array (
      0 => '.\\templates\\rubriques.tpl.php',
      1 => 1331461790,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '48514f5a7c6f419e76-27683491',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4f5a7c6f4762d9_58887470',
  'variables' => 
  array (
    'rubriques' => 0,
    'rub' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f5a7c6f4762d9_58887470')) {function content_4f5a7c6f4762d9_58887470($_smarty_tpl) {?><h1 class="title">Gestion des rubriques </h1>

<h2>Liste des rubriques actuelles : </h2>
<div id="list-rubrique">
    <ul>
        <form method="post" action="#" id="suppressionRubrique">
        <?php  $_smarty_tpl->tpl_vars['rub'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['rub']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['rubriques']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['rub']->key => $_smarty_tpl->tpl_vars['rub']->value){
$_smarty_tpl->tpl_vars['rub']->_loop = true;
?>
            <li><?php echo $_smarty_tpl->tpl_vars['rub']->value['libelle'];?>
<input class="to-delete" type="submit" value="Supprimer" id="<?php echo $_smarty_tpl->tpl_vars['rub']->value['id'];?>
"/></li>
        <?php } ?>
         </form>
    </ul>
</div>

<div>
    <form method="post" action="#" id="ajoutRubrique">
        Nouvelle rubrique : <input type="text" value="" name="new_rub" id="new_rub"/> <input type="submit" value="Ajouter"/>       
    </form>
</div><?php }} ?>